
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Content box</h3>
					
					<ul class="content-box-tabs"><!-- href must be unique and match the id of target div -->
						<li><a href="#tab2" class="default-tab">Forms</a></li>
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab2">
					
						<form action="" method="post" enctype="multipart/form-data" id="pro_add">
							
							<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								
								
								
								
							
								
								<p>
									<label>轮播图</label>
									<input type="file" name="banner" />
								</p>
								
								
								
								<p>
									<label>分类</label>              
									<select name="category_id" class="small-input">
										<?php foreach($cate as $v):?>
										<option value="<?php echo $v['id']?>"><?php echo $v['category_name']?></option>
										<?php endforeach;?>
										
									</select> 
								</p>

								<p>
									<label>状态</label>              
									<select name="status" class="small-input">
										<option value="0">搁置</option>
										<option value="1" selected="">显示</option>
									</select> 
								</p>
								
							
								
								<p>
									<input class="button" type="submit" value="提交	" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
						
					</div> <!-- End #tab2 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			
			<script type="text/javascript">
				$("#name").blur(function(){
					var name = $("#name").val();

					if(name == ''){
						$("#mname").css('color','red');
					}else{
						$("#mname").css('color','');
					}


					$.ajax({
						url : '',

						type : 'post',

						data : {},

						dataType : 'json',

						success : function(msg){

						}
					})

					return false;
					alert(name);
				})

				

				
				// $("#pro_add").submit(function(){

				// 	var sname = $("#name").val();
				// 	var snumber = $("#number").val();
				// 	var sintro = $("#intro").val();
					
 




				// 	return false;
				// })
			</script>
			
			